package com.cykj.pos.mapper;

import com.cykj.pos.domain.TransactionAmountEntity;
import com.cykj.pos.domain.ResetQueueEntity;
import com.cykj.pos.domain.TransactionStatisticsRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author SunJinDuo
 * @date 2022/7/25
 */
public interface ResetQueueMapper {
    void insert(ResetQueueEntity resetQueueEntity);

    String selectSuffix(Long merchId);

    TransactionStatisticsRecord selectMoney(@Param("merchId") Long merchId, @Param("tableName") String tableName, @Param("dateTime") String dateTime);

    TransactionStatisticsRecord selectOrtherMone(@Param("merchId") Long merchId, @Param("tableName") String tableName, @Param("dateTime") String dateTime);

    int serlectType(String enterMode);

    TransactionStatisticsRecord selectTransaction(@Param("merchId") Long merchId, @Param("dateTime") String dateTime);

    void updateCurrentLevelToday(TransactionStatisticsRecord transactionStatisticsRecord);

    List<Long> selectParentId(Long merchId);

    void delete(Long merchId);

    @Select("select merch_id from biz_transaction_amount where host_date>'2023-03-01' and host_date<'2023-03-03' group by merch_id")
    List<Long> selectMerchIds();
}
